class CreatePermissions < ActiveRecord::Migration
  def self.up
    create_table :permissions do |t|
      t.string  :name
      t.string  :role
      t.integer :level
    end
    
    add_column :users, :role, :string, :default => 'runner'
  end

  def self.down
    drop_table :permissions
    
    remove_column :users, :role
  end
end
